<template>
  <div class="box">
    <div class="searchCom">
      <div class="searchCom_left">
        <img src="../assets/image/home/home (7).png" class="searchCom_img" />
      </div>
      <div class="searchCom_right">
        <div class="searchCom_right1" v-show="flag">
          <div class="search_rightTop" @click="search">
            <input type="text" /><img
              src="../assets/image/home/home (15).png"
              class="searchCom_img"
            /><span>还是钟南山</span>
            <div class="sou">搜索</div>
          </div>
          <div class="searchCom_rightBottom" v-show="block">
            <span class="search_1">热搜: </span>
            <div class="searchCom_rightBottom1">
              <router-link to="/index/my" tag="li"
                >习近平谈治国理政3</router-link
              ><b>|</b> <router-link to="/index/my" tag="li">曾国藩</router-link
              ><b>|</b>
              <router-link to="/index/my" tag="li">今日秒杀</router-link>
              <div class="right_cent">高级搜索</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      flag: true,
      block:true,
    }
  },
  methods:{
    search(){
      this.$router.push("/index/order")
    }
  }
}
</script>

<style lang="scss" scoped>
.box {
  width: 100%;
  height: 210px;
}
.searchCom {
  width: 1310px;
  height: 94px;
  margin: 0 auto;
  display: flex;
  padding-top: 68px;
  padding-left:69px;
  .searchCom_left {
    margin-right:30px;
    img {
      width: 411px;
      height: 74px;
    }
  }
  .searchCom_right {
  }
  .searchCom_right1 {
    width: 666px;
    height: 94px;
    .search_rightTop {
      width: 666px;
      height: 64px;
      border: 4px solid #b61c38;
      border-radius: 6px 0px 0px 6px;
      position: relative;
      input {
        width: 566px;
        height: 100%;
        border: none;
        position: absolute;
        left: 0;
        top: 0;
      }
      .searchCom_img {
        width: 32px;
        height: 33px;
        position: absolute;
        top: 12px;
        left: 23px;
      }
      span {
        width: 80px;
        height: 16px;
        font-size: 15px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #848484;
        line-height: 16px;
        position: absolute;
        top: 21px;
        left: 70px;
      }
      .sou {
        width: 100px;
        height: 100%;
        position: absolute;
        right: 0;
        line-height: 60px;
        text-align: center;
        background: #b61c38;
        font-size: 25px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #ffffff;
      }
    }
    .searchCom_rightBottom {
      display: flex;
      margin-top: 9px;
      span {
        width: 35px;
        display: inline-block;
        height: 13px;
        font-size: 12px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #848484;
        line-height: 16px;
        margin-right: 14px;
      }
      .searchCom_rightBottom1 {
        display: flex;
        li {
          font-size: 12px;
          font-family: MicrosoftYaHei;
          font-weight: bold;
          color: #d50000;
          line-height: 16px;
        }
        b {
          font-size: 12px;
          color: #8e8e8e;
          margin: 0 9px 0 9px;
        }
        .right_cent {
          width: 52px;
          height: 13px;
          font-size: 12px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #848484;
          line-height: 16px;
          margin-left: 17px;
        }
      }
    }
  }
}
</style>